import {Routes} from "@angular/router";
import {GameComponent} from "./game/game.component";
import {AppComponent} from "./app.component";
import {LoginComponent} from "./user/login/login.component";
import {RegisterComponent} from "./user/register/register.component";
import {UserComponent} from "./user/user.component";
import {userRouts} from "./user/user.routes";
import {gameRouts} from "./game/game.routes";


export const appRoutes: Routes = [
  {
    path: "game",
    component: GameComponent,
    children:gameRouts
  },
  // ,
  // {
  //   path: "",
  //   pathMatch: "full",
  //   redirectTo: "home"
  // }
  // ,
  {
    path: "user",
    component: UserComponent,
    children: userRouts
  },
  {
    path: "**",
    redirectTo: "user"
  },
];
